<?php $this->Html->addCrumb('Offices', '/Offices'); ?>
<?php $this->Html->addCrumb('Add'); ?>
<?php echo $this->Form->create('Office', array('class' => 'form form-horizontal')); ?>
	
		
	<?php
		echo $this->Form->input('o_name', array(
			'label' => array('text'=>'Office Name', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('o_address', array(
			'label' => array('text'=>'Address', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('o_postcode', array(
			'label' => array('text'=>'Postcode', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('o_phone', array(
			'label' => array('text'=>'Phone', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('o_email', array(
			'label' => array('text' => 'Email', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
	?>
<div class="modal-footer">
		<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">Close</a>
		<?php echo $this->Form->end(array(
		'label' => 'Add Office',
		'class' => 'btn btn-primary',
		'div' => false
	   )); ?>
	  </div>
<script>
		$('.datetime').datetimepicker({
			format: 'yyyy-mm-dd',  //format: 'yyyy-MM-dd hh:mm:ss' either one works     
			language: 'en',
			startView: 4,
			endDate: '+1d',
			minView: 2,
			autoclose: 1,
			forceParse: 1,
			todayBtn: 0
		  });
		  
</script>